<template>
  <div class="body">
    <!-- 顶部背景图片 -->
    <MyBackground>
      <template #background></template>
    </MyBackground>
    <MyInfo></MyInfo>
    <MyGrid></MyGrid>
    <!-- 广告 -->
    <MyAdvert>
      <template #advert></template>
    </MyAdvert>
  </div>
</template>

<script>
import MyInfo from '@/components/My/MyInfo'
import MyGrid from '@/components/My/MyGrid'
import MyAdvert from '@/components/My/MyAdvert'
import MyBackground from '@/components/My/MyBackground'

export default {
  name: 'MyContent',
  components: {
    MyInfo,
    MyGrid,
    MyAdvert,
    MyBackground
  },
  data () {
    return {}
  },
  created () {},
  methods: {}
}
</script>

<style scoped>
.body {
  position: relative;
}
.My_background {
  width: 100%;
}

.My_info {
    position: absolute;
    background: #fff;
    width: 74%;
    height: 84%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%)translateY(64%);
    box-shadow: 0 0 10px 3px #ddd;
    margin: 50px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
}
.My_avatar {
    width: 100%;
    border-radius: 50%;
}
.My_myIcon {
    position: relative;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 5px solid #f5f5f5;
    display: inline-block;
    box-shadow: 0 2px 2px #bdbdbd;
}
.My_name {
    margin-top: -17px;
    margin-bottom: 17px;
}

.My_grid {
    position: absolute;
    width: 100%;
    height: 84%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%)translateY(172%);
    font-size: 13px;
}
</style>
